*{
    padding: 0;
    margin: 0;
}

#send{
    border: none;
    background-color: transparent;
}
body{
    background-color: #e5e9f2;
}
.main{
    width: 350px;
    height: 600px;
    position: relative;
    margin: 10px auto;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    background-color: #fff;

}
.img{
    position: fixed;
    width: 600px;
    top: 0;
    left:400px;
}
.header{
    box-shadow: 0 1px 5px  rgb(233, 233, 233) ;
    flex: 0 0 70px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.back{
    background-image: url(../img/back.png);
    height: 30px;
    width: 30px;
    background-size: 20px;
    background-repeat: no-repeat;
    background-position: center ;
}
.inf{
    width: 220px;
    display: flex;
    align-items: center;
    font:15px bolder;
    
}
/* .photo{
    width: 50px;
    height: 50px;
    border-radius: 10px;
    margin-right: 10px;
    background-image: url(../img/photo.jpg);
    background-size: cover;
    background-position: center;
} */
.nickname{
    width: 220px;
    margin-left: 60px;
    text-align: center;
}
.icon{

    display: flex;
    width: 90px;
    height: 30px;
}
.phone,.video,.more{
    height: 30px;
    width: 30px;
    background-size: 20px;
    background-repeat: no-repeat;
    background-position: center ;
}
.phone{
    background-image: url(../img/phone.png);
}
.video{
    background-image: url(../img/video.png);
}
.more{
    background-image: url(../img/more.png);
}
#center{
    overflow-x: hidden;
    overflow-y: auto;
    flex: 1 1 auto;
    margin-right: -16px;
    padding: 0 25px 0 10px;

}



.footer{
    flex: 0 0 40px;
    background-color: #f4f4f4;
    display: flex;

}
.voice,.face,.send{
    height: 100%;
    width: 40px;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center  center;
}
.voice{
    background-image: url(../img/voice.png);
    background-size: 25px;
}
.face{
    background-image: url(../img/face.png);
    background-size: 27px;
}
#input{
    height: 30px;
    width: 230px;
    box-sizing: border-box;
    border: none;
    border-radius: 5px;
    margin-top: 5px;
    background-color: #fff;
    padding-left: 15px;
    outline: none;
    color: #757575;
    
}
input::placeholder{
    color: #ccc;
}
.send{
    background-image: url(../img/send.png);
    background-size: 32px;
    background-position: 0px center;
}


/*信息*/
.message{
    width: 330px;
    margin:10px 0;
}
.othermessage{
    display: flex;
    justify-content: flex-start;
}

.othermessage .portrait img{
    width: 35px;
    height: 35px;
    border-radius: 50%;
    margin-right: 10px;
}
.othermessage .othtext{
    background-color: #54e0d2;
    border-radius: 5px;
    margin-right: 50px;
    padding: 10px;
    color: white;
    width:auto; 
    display:inline-block;
}


.mymessage{
     display: flex;
     justify-content: flex-end;
     
}
.mymessage .portrait img{
    width: 35px;
    height: 35px;
    border-radius: 50%;
    float: right;
    margin-left: 10px;
}
.mymessage .mytext{
    background-color: #eaf3fa;
    border-radius: 5px;
    margin-left: 50px;
    padding: 10px;
    display: inline-block;
    order: -1;
}